Skip to content

feat: add cover image upload for manga#1947

Open
HaroonChelsea wants to merge 1 commit into
Suwayomi:masterfrom
HaroonChelsea:feat/manga-cover-upload
Open

feat: add cover image upload for manga#1947
HaroonChelsea wants to merge 1 commit into
Suwayomi:masterfrom
HaroonChelsea:feat/manga-cover-upload

Conversation

@HaroonChelsea
Copy link
Copy Markdown

Summary

Adds uploadMangaCover GraphQL mutation for custom cover image uploads. Saves to the server thumbnail cache for all manga and writes cover.jpg for local source manga.

  • Clears old cached thumbnails before saving
  • Updates thumbnailUrlLastFetched for client cache invalidation
  • Fixes getMangaThumbnail to serve user-uploaded covers for local source manga (checks thumbnail cache when thumbnailUrlLastFetched > 0)

Part 2 of 3 — cover upload. See also:

Addresses #1009

Test plan

  • Manual test: uploadMangaCover via multipart GraphQL
  • Manual test: thumbnail cache updated, cover.jpg written for local source
  • Manual test: cover displays correctly after upload
  • Build: shadowJar passes
  • Lint: ktlintCheck passes

Adds uploadMangaCover GraphQL mutation for custom cover image uploads.
Saves to the server thumbnail cache for all manga and writes cover.jpg
for local source manga. Clears old cached thumbnails and updates
timestamp for client cache invalidation.

Also fixes getMangaThumbnail to serve user-uploaded covers for local
source manga by checking the thumbnail cache when thumbnailUrlLastFetched > 0.

Addresses Suwayomi#1009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant